package thread.ch03;

import thread.annotation.GuardBy;
import thread.annotation.ThreadSafe;

/**
 * 依然存在过期值
 * 
 * @author Edgar Zhang
 * 
 */
@ThreadSafe
public class SynchronizedInteger {

	@GuardBy("this")
	private int value;

	public synchronized int getValue() {
		return value;
	}

	public synchronized void setValue(int value) {
		this.value = value;
	}

}
